package com.example.shop.mapper;

import com.example.shop.model.User;
import com.example.shop.utils.PageBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface UserMapper extends Mapper<User> {
    int updateInfo(User user);
    int setUserHeadPic(User user);
    int getDataCount();
    List<User> getUsers(@Param("startNum") Integer startNum, @Param("pageSize") Integer pageSize, @Param("search") String search);
}
